package client;

import org.jgroups.Message;
import org.jgroups.ReceiverAdapter;

import transportDriver.ChatMessage;

public class TransportReceiver extends ReceiverAdapter{
	
	
	ChatMessage myChatMessage;
	
	
    public void receive(Message msg) {
    	
    	
    	          
    	myChatMessage=(ChatMessage)msg.getObject();          	
        ClientMain.fenetre.ActualiserTextArea("["+myChatMessage.getSrc()+"] : "+myChatMessage.getData());
                 
     }
	

}
